﻿namespace AccelerateSensor.Client.Tools
{
    internal class Constants
    {
        /// <summary>
        /// 窗体宽高
        /// </summary>
        public static readonly int FormWidth = 1600;
        public static readonly int FormHeight = 900;

        /// <summary>
        /// 内容页宽度
        /// </summary>
        public static readonly int ContentWidth = 1480;

        /// <summary>
        /// 每页显示数据个数
        /// </summary>
        public static readonly int CountPerPage = 50;

        /// <summary>
        /// 页面标签
        /// </summary>
        internal class PageTag
        {
            public const string Gateway = "Gateway";
            public const string Node = "Node";
            public const string NodeHistoryData = "NodeHistoryData";
        }

        /// <summary>
        /// 实时数据图标
        /// </summary>
        internal class RealtimeData
        {
            public static readonly string IconUnknown = "\ue69e"; //未知类型
            public static readonly string DeviceStateNormal = "\ue657"; //正常运行
            public static readonly string DeviceStatePowerAbnormal = "\ue650"; //供电异常
            public static readonly string DeviceStateBreakDownAlarm = "\ue6c7"; //故障报警
            public static readonly string DeviceStateOffline = "\ue68d"; //设备掉线
            public static readonly string DeviceStateStopped = "\ue60c"; //停止运行
            public static readonly string IconVoltage = "\ue600"; //电压
            public static readonly string IconCurrent = "\ue6b6"; //电流
            public static readonly string IconTemperature = "\ue67a"; //温度
            public static readonly string IconHumidity = "\ue6a8"; //湿度
            public static readonly string IconIllumination = "\ue64c"; //光照
            public static readonly string IconOxygen = "\ue601"; //氧气
            public static readonly string IconCo2 = "\ue604"; //CO2
            public static readonly string IconSo2 = "\ue605"; //SO2
        }
    }
}
